package com.cvte.vdtlibrary.bluetooth;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by wuguitong on 2018/11/20.
 */
public enum  EnumBluetoothMode implements Parcelable {
    REC_MODE,
    TRANSFER_REC,
    SEND_MODE,
    TRANSFER_SEND,
    RESET_MODE;
    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.ordinal());
    }
    public static final Creator<EnumBluetoothMode> CREATOR = new Creator<EnumBluetoothMode>() {
        @Override
        public EnumBluetoothMode createFromParcel(Parcel source) {
            return EnumBluetoothMode.values()[source.readInt()];
        }

        @Override
        public EnumBluetoothMode[] newArray(int size) {
            return new EnumBluetoothMode[size];
        }
    };
}
